CANTIDAD = 500

def c_div(n):
	c = 0
	for x in range(1, (n/2)+1):
		if n % x == 0:
			c += 1
	return c

if __name__ == '__main__':
	import os
	os.system('cls')
	
	c = 1
	n = 1
	s = 0
	while c != CANTIDAD:
		s = sum(range(1, n+1))
		c = c_div(s)
		n += 1

	print '\n\t', s, '\n' 
